// import './assets/main.css'
// 新增Pinia导入
import { createPinia } from 'pinia'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'



// Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 自定义插件
import './plugins/axios'
import './plugins/element-plus'

const app = createApp(App)
const pinia = createPinia()  // 创建Pinia实例

// 注册Element Plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(pinia)      // 必须先注册Pinia
app.use(ElementPlus)
app.use(router)


app.mount('#app')
